package com.xry.mapper;

import com.xry.bean.UserProduct;
import com.xry.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserProductDao {

    int add(@Param("param") UserProduct userProduct);

    int del(@Param("id") Integer id);

    int edit(@Param("param") UserProduct userProduct);

    List<UserProduct> all(@Param("param") UserProduct userProduct);

    UserProduct one(@Param("id") Integer id);

    int pageCount(@Param("param") UserProduct userProduct);

    List<UserProduct> page(@Param("page") Page page, @Param("param") UserProduct userProduct);


}
